package demo34;

import java.util.concurrent.Executor;

public class MyExecutor implements Executor {

    public static void main(String[] args) {
        new MyExecutor().execute(() -> System.out.println(Thread.currentThread().getName() + "hello executor"));
    }

    @Override
    public void execute(Runnable command) {
        new Thread(command).start();
//        command.run();
    }


}